<?php

declare(strict_types=1);

namespace DreamCat\StateMachineTest\Demos;

use DreamCat\StateMachine\Popo\ActionExecConditionFail;
use DreamCat\StateMachine\Popo\MachineData;
use DreamCat\StateMachine\StateInterface\ActionExecConditionInterface;

/**
 * 终止的后置条件
 * @author vijay
 */
class StopCondition implements ActionExecConditionInterface
{
    /**
     * @inheritDoc
     */
    public function canExecAction(MachineData $machineData, string $to, string $action): ?ActionExecConditionFail
    {
        return null;
    }
}

# end of file
